package com.wangxiang.shop.product.dao;

import com.wangxiang.shop.product.entity.ShopTypeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-07 21:18:21
 */
@Mapper
public interface ShopTypeDao extends BaseMapper<ShopTypeEntity> {
	int updateImage(int id,String image);
	List<ShopTypeEntity> listBylevel(int level);

	List<ShopTypeEntity> getChildren(int parentId);

	int getTypeIdByTypeName(String type);


}
